<template>
  <div class="top">
    <div class="main">
      <div class="left">
        <img :src="src0" alt="" />
      </div>
      <div class="center">
        <img :src="src1" alt="" />
      </div>
      <div class="right">
        <img :src="src2" alt="" />
      </div>
    </div>
  </div>
</template>

<script>
import token from "@/utils/token";
import { getActive } from "@/api/active";
export default {
  data() {
    return {
      // list: [],
      src0: "",
      src1: "",
      src2: "",
    };
  },
  methods: {},
  async created() {
    try {
      let res = await getActive(token);
      //   console.log(res);
      // this.list = res.data.data.list;
      // console.log(this.list);
      this.src0 = res.data.data.list[0].icon;
      this.src1 = res.data.data.list[1].icon;
      this.src2 = res.data.data.list[2].icon;
    } catch (error) {
      console.log(error);
    }
  },
};
</script>

<style scoped lang="less">
.top {
  position: relative;
  .main {
    position: absolute;
    top: -13px;
    left: 0;
    .left {
      width: 33.333%;
      height: 200px;
      border-top-left-radius: 10px;
      background-color: #fff;
      display: inline-block;
      overflow: hidden;
    }
    .center {
      width: 33.333%;
      height: 200px;
      background-color: #fff;
      display: inline-block;
    }
    .right {
      width: 33.333%;
      height: 200px;
      border-top-right-radius: 10px;
      background-color: #fff;
      display: inline-block;
      overflow: hidden;
    }
  }
}

img {
  width: 100%;
}
</style>
